<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: qwt_plot_scaleitem.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('qwt__plot__scaleitem_8cpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">qwt_plot_scaleitem.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Qwt Widget Library</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright (C) 1997   Josef Wilgen</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (C) 2002   Uwe Rathmann</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * This library is free software; you can redistribute it and/or</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *****************************************************************************/</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;qwt_plot_scaleitem.h&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;qwt_plot.h&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;qwt_scale_map.h&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;qwt_interval.h&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;qwt_text.h&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; </div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &lt;qpalette.h&gt;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;qpainter.h&gt;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="keyword">class </span>QwtPlotScaleItem::PrivateData</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;{</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    PrivateData()</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;        : <a class="code" href="class_qwt_plot_scale_item.html#a5220a5f93bd85222e4993d12289dce82">position</a>( 0.0 )</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        , <a class="code" href="class_qwt_plot_scale_item.html#a2ee0b44570c95fd95182e8e338682adb">borderDistance</a>( -1 )</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        , scaleDivFromAxis( true )</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;        , <a class="code" href="class_qwt_plot_scale_item.html#a5ac9c0f71fb5e12166027d6e0b37c429">scaleDraw</a>( new <a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a>() )</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    {</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    }</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    ~PrivateData()</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    {</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;        <span class="keyword">delete</span> <a class="code" href="class_qwt_plot_scale_item.html#a5ac9c0f71fb5e12166027d6e0b37c429">scaleDraw</a>;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    }</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <a class="code" href="class_qwt_interval.html">QwtInterval</a> scaleInterval( <span class="keyword">const</span> QRectF&amp;,</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        <span class="keyword">const</span> <a class="code" href="class_qwt_scale_map.html">QwtScaleMap</a>&amp;, <span class="keyword">const</span> <a class="code" href="class_qwt_scale_map.html">QwtScaleMap</a>&amp; ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    QPalette <a class="code" href="class_qwt_plot_scale_item.html#ad352c0b2aef9c37de89fe75db904b8c2">palette</a>;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    QFont <a class="code" href="class_qwt_plot_scale_item.html#a9f25630612c618370630d02d275b358a">font</a>;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_qwt_plot_scale_item.html#a5220a5f93bd85222e4993d12289dce82">position</a>;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_qwt_plot_scale_item.html#a2ee0b44570c95fd95182e8e338682adb">borderDistance</a>;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keywordtype">bool</span> scaleDivFromAxis;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a>* <a class="code" href="class_qwt_plot_scale_item.html#a5ac9c0f71fb5e12166027d6e0b37c429">scaleDraw</a>;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;};</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<a class="code" href="class_qwt_interval.html">QwtInterval</a> QwtPlotScaleItem::PrivateData::scaleInterval( <span class="keyword">const</span> QRectF&amp; canvasRect,</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_qwt_scale_map.html">QwtScaleMap</a>&amp; xMap, <span class="keyword">const</span> <a class="code" href="class_qwt_scale_map.html">QwtScaleMap</a>&amp; yMap )<span class="keyword"> const</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <a class="code" href="class_qwt_interval.html">QwtInterval</a> interval;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keywordflow">if</span> ( scaleDraw-&gt;orientation() == Qt::Horizontal )</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    {</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        interval.<a class="code" href="class_qwt_interval.html#ab993dac41ca70402e0cb4f9f980d90f0">setMinValue</a>( xMap.<a class="code" href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">invTransform</a>( canvasRect.left() ) );</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        interval.<a class="code" href="class_qwt_interval.html#a3eeedaf35966d535670863cb0f97613a">setMaxValue</a>( xMap.<a class="code" href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">invTransform</a>( canvasRect.right() - 1 ) );</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    }</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    {</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        interval.<a class="code" href="class_qwt_interval.html#ab993dac41ca70402e0cb4f9f980d90f0">setMinValue</a>( yMap.<a class="code" href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">invTransform</a>( canvasRect.bottom() - 1 ) );</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        interval.<a class="code" href="class_qwt_interval.html#a3eeedaf35966d535670863cb0f97613a">setMaxValue</a>( yMap.<a class="code" href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">invTransform</a>( canvasRect.top() ) );</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    }</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keywordflow">return</span> interval;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;}</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#a9d093fc9de7d423435f455c110d4605d">   75</a></span>&#160;<a class="code" href="class_qwt_plot_scale_item.html#a9d093fc9de7d423435f455c110d4605d">QwtPlotScaleItem::QwtPlotScaleItem</a>(</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        <a class="code" href="class_qwt_scale_draw.html#acd7ceeeac592ef08530788580b461c66">QwtScaleDraw::Alignment</a> alignment, <span class="keyword">const</span> <span class="keywordtype">double</span> pos )</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    : <a class="code" href="class_qwt_plot_item.html">QwtPlotItem</a>( <a class="code" href="class_qwt_text.html">QwtText</a>( <span class="stringliteral">&quot;Scale&quot;</span> ) )</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;{</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    m_data = <span class="keyword">new</span> PrivateData;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    m_data-&gt;position = pos;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    m_data-&gt;scaleDraw-&gt;setAlignment( alignment );</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <a class="code" href="class_qwt_plot_item.html#ab65cbfe489ff73e32a919a0633298fb7">setItemInterest</a>( <a class="code" href="class_qwt_plot_item.html#affbc42460ace9ac725fa825a3f8bfb66a0d1c46890f22ef973d897ab0a9d38971">QwtPlotItem::ScaleInterest</a>, <span class="keyword">true</span> );</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <a class="code" href="class_qwt_plot_item.html#a57d90e4146133b59d589c71b3a643e82">setZ</a>( 11.0 );</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;}</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#a8f246e1e73704c1c40ae1294269b65fa">   88</a></span>&#160;<a class="code" href="class_qwt_plot_scale_item.html#a8f246e1e73704c1c40ae1294269b65fa">QwtPlotScaleItem::~QwtPlotScaleItem</a>()</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;{</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keyword">delete</span> m_data;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;}</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160; </div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#a8a1f80dc7349fdfbd9fb6ea584e7d83a">   94</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="class_qwt_plot_scale_item.html#a8a1f80dc7349fdfbd9fb6ea584e7d83a">QwtPlotScaleItem::rtti</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qwt_plot_item.html#ab149ac85e233ce9cedf2f2f2af871bf3a386936d7e0186eabeb833a51cc4fb1cc">QwtPlotItem::Rtti_PlotScale</a>;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;}</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#a99032adf91892f73d06a4810cd78d26b">  108</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_scale_item.html#a99032adf91892f73d06a4810cd78d26b">QwtPlotScaleItem::setScaleDiv</a>( <span class="keyword">const</span> <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a>&amp; scaleDiv )</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;{</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    m_data-&gt;scaleDivFromAxis = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    m_data-&gt;scaleDraw-&gt;setScaleDiv( <a class="code" href="class_qwt_plot_scale_item.html#a3b70b2b9a3fe31840f92c431288569be">scaleDiv</a> );</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;}</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#a3b70b2b9a3fe31840f92c431288569be">  115</a></span>&#160;<span class="keyword">const</span> <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a>&amp; <a class="code" href="class_qwt_plot_scale_item.html#a3b70b2b9a3fe31840f92c431288569be">QwtPlotScaleItem::scaleDiv</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;scaleDraw-&gt;scaleDiv();</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;}</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#a0b4660ad3d3fcf1f1de711b075b073c6">  127</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_scale_item.html#a0b4660ad3d3fcf1f1de711b075b073c6">QwtPlotScaleItem::setScaleDivFromAxis</a>( <span class="keywordtype">bool</span> on )</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;{</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <span class="keywordflow">if</span> ( on != m_data-&gt;scaleDivFromAxis )</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    {</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        m_data-&gt;scaleDivFromAxis = on;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;        <span class="keywordflow">if</span> ( on )</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        {</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;            <span class="keyword">const</span> <a class="code" href="class_qwt_plot.html">QwtPlot</a>* plt = <a class="code" href="class_qwt_plot_item.html#a68dc5c562bdec6ee764ddedae6acd3bf">plot</a>();</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;            <span class="keywordflow">if</span> ( plt )</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;            {</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;                <a class="code" href="class_qwt_plot_scale_item.html#a3c24614b37143664165f7600d68e87cd">updateScaleDiv</a>( plt-&gt;<a class="code" href="class_qwt_plot.html#aec95c5a35fdd1ef000093d44337c9210">axisScaleDiv</a>( <a class="code" href="class_qwt_plot_item.html#a882b5eb610c7b384b64f0f6077f23c62">xAxis</a>() ),</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;                    plt-&gt;<a class="code" href="class_qwt_plot.html#aec95c5a35fdd1ef000093d44337c9210">axisScaleDiv</a>( <a class="code" href="class_qwt_plot_item.html#a04da91589ece54e665ca94e487f7a208">yAxis</a>() ) );</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;                <a class="code" href="class_qwt_plot_item.html#ad956fdbce5b0721abccce6d09fe4d5ce">itemChanged</a>();</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;            }</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        }</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    }</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;}</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160; </div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#a53bdad2a3bf4a3896f90d39aecd03391">  150</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_qwt_plot_scale_item.html#a53bdad2a3bf4a3896f90d39aecd03391">QwtPlotScaleItem::isScaleDivFromAxis</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;scaleDivFromAxis;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;}</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#aff7adf18c2a6f679227c0fdaa54f39f7">  159</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_scale_item.html#aff7adf18c2a6f679227c0fdaa54f39f7">QwtPlotScaleItem::setPalette</a>( <span class="keyword">const</span> QPalette&amp; palette )</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;{</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_plot_scale_item.html#ad352c0b2aef9c37de89fe75db904b8c2">palette</a> != m_data-&gt;palette )</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    {</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        m_data-&gt;palette = <a class="code" href="class_qwt_plot_scale_item.html#ad352c0b2aef9c37de89fe75db904b8c2">palette</a>;</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160; </div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        <a class="code" href="class_qwt_plot_item.html#a3967414c7542e267d0c2793f02be7241">legendChanged</a>();</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        <a class="code" href="class_qwt_plot_item.html#ad956fdbce5b0721abccce6d09fe4d5ce">itemChanged</a>();</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    }</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;}</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160; </div>
<div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#ad352c0b2aef9c37de89fe75db904b8c2">  174</a></span>&#160;QPalette <a class="code" href="class_qwt_plot_scale_item.html#ad352c0b2aef9c37de89fe75db904b8c2">QwtPlotScaleItem::palette</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;palette;</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;}</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160; </div>
<div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#a8f2bc7a401bb3e1cf796ff024032e31d">  183</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_scale_item.html#a8f2bc7a401bb3e1cf796ff024032e31d">QwtPlotScaleItem::setFont</a>( <span class="keyword">const</span> QFont&amp; font )</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;{</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_plot_scale_item.html#a9f25630612c618370630d02d275b358a">font</a> != m_data-&gt;font )</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    {</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;        m_data-&gt;font = <a class="code" href="class_qwt_plot_scale_item.html#a9f25630612c618370630d02d275b358a">font</a>;</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;        <a class="code" href="class_qwt_plot_item.html#ad956fdbce5b0721abccce6d09fe4d5ce">itemChanged</a>();</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    }</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;}</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160; </div>
<div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#a9f25630612c618370630d02d275b358a">  196</a></span>&#160;QFont <a class="code" href="class_qwt_plot_scale_item.html#a9f25630612c618370630d02d275b358a">QwtPlotScaleItem::font</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;font;</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;}</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160; </div>
<div class="line"><a name="l00212"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#a0224f2720f3df4fc781d10560a4a1590">  212</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_scale_item.html#a0224f2720f3df4fc781d10560a4a1590">QwtPlotScaleItem::setScaleDraw</a>( <a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a>* scaleDraw )</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;{</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_plot_scale_item.html#a5ac9c0f71fb5e12166027d6e0b37c429">scaleDraw</a> == NULL )</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160; </div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_plot_scale_item.html#a5ac9c0f71fb5e12166027d6e0b37c429">scaleDraw</a> != m_data-&gt;scaleDraw )</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;        <span class="keyword">delete</span> m_data-&gt;scaleDraw;</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160; </div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    m_data-&gt;scaleDraw = <a class="code" href="class_qwt_plot_scale_item.html#a5ac9c0f71fb5e12166027d6e0b37c429">scaleDraw</a>;</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160; </div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_qwt_plot.html">QwtPlot</a>* plt = <a class="code" href="class_qwt_plot_item.html#a68dc5c562bdec6ee764ddedae6acd3bf">plot</a>();</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    <span class="keywordflow">if</span> ( plt )</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    {</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        <a class="code" href="class_qwt_plot_scale_item.html#a3c24614b37143664165f7600d68e87cd">updateScaleDiv</a>( plt-&gt;<a class="code" href="class_qwt_plot.html#aec95c5a35fdd1ef000093d44337c9210">axisScaleDiv</a>( <a class="code" href="class_qwt_plot_item.html#a882b5eb610c7b384b64f0f6077f23c62">xAxis</a>() ),</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;            plt-&gt;<a class="code" href="class_qwt_plot.html#aec95c5a35fdd1ef000093d44337c9210">axisScaleDiv</a>( <a class="code" href="class_qwt_plot_item.html#a04da91589ece54e665ca94e487f7a208">yAxis</a>() ) );</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    }</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160; </div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    <a class="code" href="class_qwt_plot_item.html#ad956fdbce5b0721abccce6d09fe4d5ce">itemChanged</a>();</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;}</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160; </div>
<div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#a5ac9c0f71fb5e12166027d6e0b37c429">  236</a></span>&#160;<span class="keyword">const</span> <a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a>* <a class="code" href="class_qwt_plot_scale_item.html#a5ac9c0f71fb5e12166027d6e0b37c429">QwtPlotScaleItem::scaleDraw</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;scaleDraw;</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;}</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160; </div>
<div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#ab75d17fe11c146b49ffa47940f512850">  245</a></span>&#160;<a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a>* <a class="code" href="class_qwt_plot_scale_item.html#a5ac9c0f71fb5e12166027d6e0b37c429">QwtPlotScaleItem::scaleDraw</a>()</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;{</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;scaleDraw;</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;}</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160; </div>
<div class="line"><a name="l00261"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#a94536af312bb9d6de5bc7547c59e4faf">  261</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_scale_item.html#a94536af312bb9d6de5bc7547c59e4faf">QwtPlotScaleItem::setPosition</a>( <span class="keywordtype">double</span> pos )</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;{</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;position != pos )</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;    {</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;        m_data-&gt;position = pos;</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;        m_data-&gt;borderDistance = -1;</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;        <a class="code" href="class_qwt_plot_item.html#ad956fdbce5b0721abccce6d09fe4d5ce">itemChanged</a>();</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;    }</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;}</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160; </div>
<div class="line"><a name="l00275"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#a5220a5f93bd85222e4993d12289dce82">  275</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_plot_scale_item.html#a5220a5f93bd85222e4993d12289dce82">QwtPlotScaleItem::position</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;position;</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;}</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160; </div>
<div class="line"><a name="l00296"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#ae6e2fc87f445357555a3b1b54da054fa">  296</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_scale_item.html#ae6e2fc87f445357555a3b1b54da054fa">QwtPlotScaleItem::setBorderDistance</a>( <span class="keywordtype">int</span> distance )</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;{</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;    <span class="keywordflow">if</span> ( distance &lt; 0 )</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;        distance = -1;</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160; </div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;    <span class="keywordflow">if</span> ( distance != m_data-&gt;borderDistance )</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;    {</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;        m_data-&gt;borderDistance = distance;</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        <a class="code" href="class_qwt_plot_item.html#ad956fdbce5b0721abccce6d09fe4d5ce">itemChanged</a>();</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;    }</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;}</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160; </div>
<div class="line"><a name="l00312"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#a2ee0b44570c95fd95182e8e338682adb">  312</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="class_qwt_plot_scale_item.html#a2ee0b44570c95fd95182e8e338682adb">QwtPlotScaleItem::borderDistance</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;borderDistance;</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;}</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160; </div>
<div class="line"><a name="l00333"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#af11343d14c4ee38e0527cedd52b3da85">  333</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_scale_item.html#af11343d14c4ee38e0527cedd52b3da85">QwtPlotScaleItem::setAlignment</a>( <a class="code" href="class_qwt_scale_draw.html#acd7ceeeac592ef08530788580b461c66">QwtScaleDraw::Alignment</a> alignment )</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;{</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;    <a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a>* sd = m_data-&gt;scaleDraw;</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;    <span class="keywordflow">if</span> ( sd-&gt;<a class="code" href="class_qwt_scale_draw.html#a89774ef071c6d66fae5843a13fe12bd5">alignment</a>() != alignment )</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;    {</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;        sd-&gt;<a class="code" href="class_qwt_scale_draw.html#a7a4de0055dc1358e55c3357366a54091">setAlignment</a>( alignment );</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;        <a class="code" href="class_qwt_plot_item.html#ad956fdbce5b0721abccce6d09fe4d5ce">itemChanged</a>();</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    }</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;}</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160; </div>
<div class="line"><a name="l00346"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#a8277edb5a94e67ec77ee6a88c67262a6">  346</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_scale_item.html#a8277edb5a94e67ec77ee6a88c67262a6">QwtPlotScaleItem::draw</a>( QPainter* painter,</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_qwt_scale_map.html">QwtScaleMap</a>&amp; xMap, <span class="keyword">const</span> <a class="code" href="class_qwt_scale_map.html">QwtScaleMap</a>&amp; yMap,</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;    <span class="keyword">const</span> QRectF&amp; canvasRect )<span class="keyword"> const</span></div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;    <a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a>* sd = m_data-&gt;scaleDraw;</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160; </div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;scaleDivFromAxis )</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    {</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;        <span class="keyword">const</span> <a class="code" href="class_qwt_interval.html">QwtInterval</a> interval =</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;            m_data-&gt;scaleInterval( canvasRect, xMap, yMap );</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160; </div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;        <span class="keywordflow">if</span> ( interval != sd-&gt;<a class="code" href="class_qwt_abstract_scale_draw.html#ad15e796d2fd8bd1e2cfa66715bf58e2e">scaleDiv</a>().<a class="code" href="class_qwt_scale_div.html#a30f6cd443fdbc5d57b3503893c7cbfa6">interval</a>() )</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;        {</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;            <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a> <a class="code" href="class_qwt_plot_scale_item.html#a3b70b2b9a3fe31840f92c431288569be">scaleDiv</a> = sd-&gt;<a class="code" href="class_qwt_abstract_scale_draw.html#ad15e796d2fd8bd1e2cfa66715bf58e2e">scaleDiv</a>();</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;            <a class="code" href="class_qwt_plot_scale_item.html#a3b70b2b9a3fe31840f92c431288569be">scaleDiv</a>.<a class="code" href="class_qwt_scale_div.html#aa5c61a5fef5f83f2735e4e1b8e545f0b">setInterval</a>( interval );</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;            sd-&gt;<a class="code" href="class_qwt_abstract_scale_draw.html#a149792f955cc3f05c16362338bcc98c4">setScaleDiv</a>( <a class="code" href="class_qwt_plot_scale_item.html#a3b70b2b9a3fe31840f92c431288569be">scaleDiv</a> );</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;        }</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    }</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160; </div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    QPen pen = painter-&gt;pen();</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;    pen.setStyle( Qt::SolidLine );</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    painter-&gt;setPen( pen );</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160; </div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;    <span class="keywordflow">if</span> ( sd-&gt;<a class="code" href="class_qwt_scale_draw.html#aba3a8530871137eb5f977e1eb3fe4975">orientation</a>() == Qt::Horizontal )</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;    {</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;        <span class="keywordtype">double</span> y;</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;        <span class="keywordflow">if</span> ( m_data-&gt;borderDistance &gt;= 0 )</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;        {</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;            <span class="keywordflow">if</span> ( sd-&gt;<a class="code" href="class_qwt_scale_draw.html#a89774ef071c6d66fae5843a13fe12bd5">alignment</a>() == <a class="code" href="class_qwt_scale_draw.html#acd7ceeeac592ef08530788580b461c66a0e16389e135da75f06117d1ee3ef765f">QwtScaleDraw::BottomScale</a> )</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;                y = canvasRect.top() + m_data-&gt;borderDistance;</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;            {</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;                y = canvasRect.bottom() - m_data-&gt;borderDistance;</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;            }</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160; </div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;        }</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;        {</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;            y = yMap.<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( m_data-&gt;position );</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;        }</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160; </div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;        <span class="keywordflow">if</span> ( y &lt; canvasRect.top() || y &gt; canvasRect.bottom() )</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160; </div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;        sd-&gt;<a class="code" href="class_qwt_scale_draw.html#a15f91bdd71ec87abe618e00cf18aa3f1">move</a>( canvasRect.left(), y );</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;        sd-&gt;<a class="code" href="class_qwt_scale_draw.html#a002528e391ce07246a5d6b05b4bac9d9">setLength</a>( canvasRect.width() - 1 );</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160; </div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;        <a class="code" href="class_qwt_transform.html">QwtTransform</a>* transform = NULL;</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;        <span class="keywordflow">if</span> ( xMap.<a class="code" href="class_qwt_scale_map.html#a810c561caaad7d6573a1e8ff06fe4b23">transformation</a>() )</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;            transform = xMap.<a class="code" href="class_qwt_scale_map.html#a810c561caaad7d6573a1e8ff06fe4b23">transformation</a>()-&gt;<a class="code" href="class_qwt_transform.html#aae011ee4205fa4391459766d88971809">copy</a>();</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160; </div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;        sd-&gt;<a class="code" href="class_qwt_abstract_scale_draw.html#a732d0e49c9092c48893b4f71cc7357db">setTransformation</a>( transform );</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;    }</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;    <span class="keywordflow">else</span> <span class="comment">// == Qt::Vertical</span></div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;    {</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;        <span class="keywordtype">double</span> x;</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;        <span class="keywordflow">if</span> ( m_data-&gt;borderDistance &gt;= 0 )</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;        {</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;            <span class="keywordflow">if</span> ( sd-&gt;<a class="code" href="class_qwt_scale_draw.html#a89774ef071c6d66fae5843a13fe12bd5">alignment</a>() == <a class="code" href="class_qwt_scale_draw.html#acd7ceeeac592ef08530788580b461c66a84d42042d94ae7726395ceb578225e1e">QwtScaleDraw::RightScale</a> )</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;                x = canvasRect.left() + m_data-&gt;borderDistance;</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;            {</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;                x = canvasRect.right() - m_data-&gt;borderDistance;</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;            }</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;        }</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;        {</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;            x = xMap.<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( m_data-&gt;position );</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;        }</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;        <span class="keywordflow">if</span> ( x &lt; canvasRect.left() || x &gt; canvasRect.right() )</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160; </div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;        sd-&gt;<a class="code" href="class_qwt_scale_draw.html#a15f91bdd71ec87abe618e00cf18aa3f1">move</a>( x, canvasRect.top() );</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;        sd-&gt;<a class="code" href="class_qwt_scale_draw.html#a002528e391ce07246a5d6b05b4bac9d9">setLength</a>( canvasRect.height() - 1 );</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160; </div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;        <a class="code" href="class_qwt_transform.html">QwtTransform</a>* transform = NULL;</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;        <span class="keywordflow">if</span> ( yMap.<a class="code" href="class_qwt_scale_map.html#a810c561caaad7d6573a1e8ff06fe4b23">transformation</a>() )</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;            transform = yMap.<a class="code" href="class_qwt_scale_map.html#a810c561caaad7d6573a1e8ff06fe4b23">transformation</a>()-&gt;<a class="code" href="class_qwt_transform.html#aae011ee4205fa4391459766d88971809">copy</a>();</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160; </div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;        sd-&gt;<a class="code" href="class_qwt_abstract_scale_draw.html#a732d0e49c9092c48893b4f71cc7357db">setTransformation</a>( transform );</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;    }</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160; </div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;    painter-&gt;setFont( m_data-&gt;font );</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160; </div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;    sd-&gt;<a class="code" href="class_qwt_abstract_scale_draw.html#ac4442d7480db1288971e7eac15142467">draw</a>( painter, m_data-&gt;palette );</div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;}</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160; </div>
<div class="line"><a name="l00445"></a><span class="lineno"><a class="line" href="class_qwt_plot_scale_item.html#a3c24614b37143664165f7600d68e87cd">  445</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_scale_item.html#a3c24614b37143664165f7600d68e87cd">QwtPlotScaleItem::updateScaleDiv</a>( <span class="keyword">const</span> <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a>&amp; xScaleDiv,</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a>&amp; yScaleDiv )</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;{</div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;    <a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a>* <a class="code" href="class_qwt_plot_scale_item.html#a5ac9c0f71fb5e12166027d6e0b37c429">scaleDraw</a> = m_data-&gt;scaleDraw;</div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160; </div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;scaleDivFromAxis &amp;&amp; <a class="code" href="class_qwt_plot_scale_item.html#a5ac9c0f71fb5e12166027d6e0b37c429">scaleDraw</a> )</div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;    {</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;        <span class="keyword">const</span> <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a>&amp; <a class="code" href="class_qwt_plot_scale_item.html#a3b70b2b9a3fe31840f92c431288569be">scaleDiv</a> =</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;            <a class="code" href="class_qwt_plot_scale_item.html#a5ac9c0f71fb5e12166027d6e0b37c429">scaleDraw</a>-&gt;<a class="code" href="class_qwt_scale_draw.html#aba3a8530871137eb5f977e1eb3fe4975">orientation</a>() == Qt::Horizontal ? xScaleDiv : yScaleDiv;</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160; </div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;        <span class="keyword">const</span> <a class="code" href="class_qwt_plot.html">QwtPlot</a>* plt = <a class="code" href="class_qwt_plot_item.html#a68dc5c562bdec6ee764ddedae6acd3bf">plot</a>();</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;        <span class="keywordflow">if</span> ( plt != NULL )</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;        {</div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;            <span class="keyword">const</span> QRectF canvasRect = plt-&gt;<a class="code" href="class_qwt_plot.html#a53f836bb4ec09c766e3d871ea4be28f7">canvas</a>()-&gt;contentsRect();</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160; </div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;            <span class="keyword">const</span> <a class="code" href="class_qwt_interval.html">QwtInterval</a> interval = m_data-&gt;scaleInterval(</div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;                canvasRect, plt-&gt;<a class="code" href="class_qwt_plot.html#ac68a48e1fbd79355c82bbbf3a1e19e93">canvasMap</a>( <a class="code" href="class_qwt_plot_item.html#a882b5eb610c7b384b64f0f6077f23c62">xAxis</a>() ), plt-&gt;<a class="code" href="class_qwt_plot.html#ac68a48e1fbd79355c82bbbf3a1e19e93">canvasMap</a>( <a class="code" href="class_qwt_plot_item.html#a04da91589ece54e665ca94e487f7a208">yAxis</a>() ) );</div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160; </div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;            <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a> sd = <a class="code" href="class_qwt_plot_scale_item.html#a3b70b2b9a3fe31840f92c431288569be">scaleDiv</a>;</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;            sd.<a class="code" href="class_qwt_scale_div.html#aa5c61a5fef5f83f2735e4e1b8e545f0b">setInterval</a>( interval );</div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160; </div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;            <span class="keywordflow">if</span> ( sd != <a class="code" href="class_qwt_plot_scale_item.html#a5ac9c0f71fb5e12166027d6e0b37c429">scaleDraw</a>-&gt;<a class="code" href="class_qwt_abstract_scale_draw.html#ad15e796d2fd8bd1e2cfa66715bf58e2e">scaleDiv</a>() )</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;            {</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;                <span class="comment">// the internal label cache of QwtScaleDraw</span></div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;                <span class="comment">// is cleared here, so better avoid pointless</span></div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;                <span class="comment">// assignments.</span></div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160; </div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;                <a class="code" href="class_qwt_plot_scale_item.html#a5ac9c0f71fb5e12166027d6e0b37c429">scaleDraw</a>-&gt;<a class="code" href="class_qwt_abstract_scale_draw.html#a149792f955cc3f05c16362338bcc98c4">setScaleDiv</a>( sd );</div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;            }</div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;        }</div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;        {</div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;            <a class="code" href="class_qwt_plot_scale_item.html#a5ac9c0f71fb5e12166027d6e0b37c429">scaleDraw</a>-&gt;<a class="code" href="class_qwt_abstract_scale_draw.html#a149792f955cc3f05c16362338bcc98c4">setScaleDiv</a>( <a class="code" href="class_qwt_plot_scale_item.html#a3b70b2b9a3fe31840f92c431288569be">scaleDiv</a> );</div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;        }</div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;    }</div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;}</div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_a149792f955cc3f05c16362338bcc98c4"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#a149792f955cc3f05c16362338bcc98c4">QwtAbstractScaleDraw::setScaleDiv</a></div><div class="ttdeci">void setScaleDiv(const QwtScaleDiv &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00104">qwt_abstract_scale_draw.cpp:104</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_a732d0e49c9092c48893b4f71cc7357db"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#a732d0e49c9092c48893b4f71cc7357db">QwtAbstractScaleDraw::setTransformation</a></div><div class="ttdeci">void setTransformation(QwtTransform *)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00115">qwt_abstract_scale_draw.cpp:115</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_ac4442d7480db1288971e7eac15142467"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#ac4442d7480db1288971e7eac15142467">QwtAbstractScaleDraw::draw</a></div><div class="ttdeci">virtual void draw(QPainter *, const QPalette &amp;) const</div><div class="ttdoc">Draw the scale.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00169">qwt_abstract_scale_draw.cpp:169</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_ad15e796d2fd8bd1e2cfa66715bf58e2e"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#ad15e796d2fd8bd1e2cfa66715bf58e2e">QwtAbstractScaleDraw::scaleDiv</a></div><div class="ttdeci">const QwtScaleDiv &amp; scaleDiv() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00133">qwt_abstract_scale_draw.cpp:133</a></div></div>
<div class="ttc" id="aclass_qwt_interval_html"><div class="ttname"><a href="class_qwt_interval.html">QwtInterval</a></div><div class="ttdoc">A class representing an interval.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__interval_8h_source.html#l00022">qwt_interval.h:23</a></div></div>
<div class="ttc" id="aclass_qwt_interval_html_a3eeedaf35966d535670863cb0f97613a"><div class="ttname"><a href="class_qwt_interval.html#a3eeedaf35966d535670863cb0f97613a">QwtInterval::setMaxValue</a></div><div class="ttdeci">void setMaxValue(double)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__interval_8h_source.html#l00186">qwt_interval.h:186</a></div></div>
<div class="ttc" id="aclass_qwt_interval_html_ab993dac41ca70402e0cb4f9f980d90f0"><div class="ttname"><a href="class_qwt_interval.html#ab993dac41ca70402e0cb4f9f980d90f0">QwtInterval::setMinValue</a></div><div class="ttdeci">void setMinValue(double)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__interval_8h_source.html#l00176">qwt_interval.h:176</a></div></div>
<div class="ttc" id="aclass_qwt_plot_html"><div class="ttname"><a href="class_qwt_plot.html">QwtPlot</a></div><div class="ttdoc">A 2-D plotting widget.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot_8h_source.html#l00078">qwt_plot.h:79</a></div></div>
<div class="ttc" id="aclass_qwt_plot_html_a53f836bb4ec09c766e3d871ea4be28f7"><div class="ttname"><a href="class_qwt_plot.html#a53f836bb4ec09c766e3d871ea4be28f7">QwtPlot::canvas</a></div><div class="ttdeci">QWidget * canvas()</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot_8cpp_source.html#l00463">qwt_plot.cpp:463</a></div></div>
<div class="ttc" id="aclass_qwt_plot_html_ac68a48e1fbd79355c82bbbf3a1e19e93"><div class="ttname"><a href="class_qwt_plot.html#ac68a48e1fbd79355c82bbbf3a1e19e93">QwtPlot::canvasMap</a></div><div class="ttdeci">virtual QwtScaleMap canvasMap(QwtAxisId) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot_8cpp_source.html#l00800">qwt_plot.cpp:800</a></div></div>
<div class="ttc" id="aclass_qwt_plot_html_aec95c5a35fdd1ef000093d44337c9210"><div class="ttname"><a href="class_qwt_plot.html#aec95c5a35fdd1ef000093d44337c9210">QwtPlot::axisScaleDiv</a></div><div class="ttdeci">const QwtScaleDiv &amp; axisScaleDiv(QwtAxisId) const</div><div class="ttdoc">Return the scale division of a specified axis.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__axis_8cpp_source.html#l00283">qwt_plot_axis.cpp:283</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html"><div class="ttname"><a href="class_qwt_plot_item.html">QwtPlotItem</a></div><div class="ttdoc">Base class for items on the plot canvas.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8h_source.html#l00066">qwt_plot_item.h:67</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_a04da91589ece54e665ca94e487f7a208"><div class="ttname"><a href="class_qwt_plot_item.html#a04da91589ece54e665ca94e487f7a208">QwtPlotItem::yAxis</a></div><div class="ttdeci">QwtAxisId yAxis() const</div><div class="ttdoc">Return yAxis.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8cpp_source.html#l00559">qwt_plot_item.cpp:559</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_a3967414c7542e267d0c2793f02be7241"><div class="ttname"><a href="class_qwt_plot_item.html#a3967414c7542e267d0c2793f02be7241">QwtPlotItem::legendChanged</a></div><div class="ttdeci">virtual void legendChanged()</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8cpp_source.html#l00491">qwt_plot_item.cpp:491</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_a57d90e4146133b59d589c71b3a643e82"><div class="ttname"><a href="class_qwt_plot_item.html#a57d90e4146133b59d589c71b3a643e82">QwtPlotItem::setZ</a></div><div class="ttdeci">void setZ(double z)</div><div class="ttdoc">Set the z value.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8cpp_source.html#l00165">qwt_plot_item.cpp:165</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_a68dc5c562bdec6ee764ddedae6acd3bf"><div class="ttname"><a href="class_qwt_plot_item.html#a68dc5c562bdec6ee764ddedae6acd3bf">QwtPlotItem::plot</a></div><div class="ttdeci">QwtPlot * plot() const</div><div class="ttdoc">Return attached plot.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8cpp_source.html#l00142">qwt_plot_item.cpp:142</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_a882b5eb610c7b384b64f0f6077f23c62"><div class="ttname"><a href="class_qwt_plot_item.html#a882b5eb610c7b384b64f0f6077f23c62">QwtPlotItem::xAxis</a></div><div class="ttdeci">QwtAxisId xAxis() const</div><div class="ttdoc">Return xAxis.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8cpp_source.html#l00553">qwt_plot_item.cpp:553</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_ab149ac85e233ce9cedf2f2f2af871bf3a386936d7e0186eabeb833a51cc4fb1cc"><div class="ttname"><a href="class_qwt_plot_item.html#ab149ac85e233ce9cedf2f2f2af871bf3a386936d7e0186eabeb833a51cc4fb1cc">QwtPlotItem::Rtti_PlotScale</a></div><div class="ttdeci">@ Rtti_PlotScale</div><div class="ttdoc">For QwtPlotScaleItem.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8h_source.html#l00084">qwt_plot_item.h:84</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_ab65cbfe489ff73e32a919a0633298fb7"><div class="ttname"><a href="class_qwt_plot_item.html#ab65cbfe489ff73e32a919a0633298fb7">QwtPlotItem::setItemInterest</a></div><div class="ttdeci">void setItemInterest(ItemInterest, bool on=true)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8cpp_source.html#l00279">qwt_plot_item.cpp:279</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_ad956fdbce5b0721abccce6d09fe4d5ce"><div class="ttname"><a href="class_qwt_plot_item.html#ad956fdbce5b0721abccce6d09fe4d5ce">QwtPlotItem::itemChanged</a></div><div class="ttdeci">virtual void itemChanged()</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8cpp_source.html#l00481">qwt_plot_item.cpp:481</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_affbc42460ace9ac725fa825a3f8bfb66a0d1c46890f22ef973d897ab0a9d38971"><div class="ttname"><a href="class_qwt_plot_item.html#affbc42460ace9ac725fa825a3f8bfb66a0d1c46890f22ef973d897ab0a9d38971">QwtPlotItem::ScaleInterest</a></div><div class="ttdeci">@ ScaleInterest</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8h_source.html#l00185">qwt_plot_item.h:185</a></div></div>
<div class="ttc" id="aclass_qwt_plot_scale_item_html_a0224f2720f3df4fc781d10560a4a1590"><div class="ttname"><a href="class_qwt_plot_scale_item.html#a0224f2720f3df4fc781d10560a4a1590">QwtPlotScaleItem::setScaleDraw</a></div><div class="ttdeci">void setScaleDraw(QwtScaleDraw *)</div><div class="ttdoc">Set a scale draw.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__scaleitem_8cpp_source.html#l00212">qwt_plot_scaleitem.cpp:212</a></div></div>
<div class="ttc" id="aclass_qwt_plot_scale_item_html_a0b4660ad3d3fcf1f1de711b075b073c6"><div class="ttname"><a href="class_qwt_plot_scale_item.html#a0b4660ad3d3fcf1f1de711b075b073c6">QwtPlotScaleItem::setScaleDivFromAxis</a></div><div class="ttdeci">void setScaleDivFromAxis(bool on)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__scaleitem_8cpp_source.html#l00127">qwt_plot_scaleitem.cpp:127</a></div></div>
<div class="ttc" id="aclass_qwt_plot_scale_item_html_a2ee0b44570c95fd95182e8e338682adb"><div class="ttname"><a href="class_qwt_plot_scale_item.html#a2ee0b44570c95fd95182e8e338682adb">QwtPlotScaleItem::borderDistance</a></div><div class="ttdeci">int borderDistance() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__scaleitem_8cpp_source.html#l00312">qwt_plot_scaleitem.cpp:312</a></div></div>
<div class="ttc" id="aclass_qwt_plot_scale_item_html_a3b70b2b9a3fe31840f92c431288569be"><div class="ttname"><a href="class_qwt_plot_scale_item.html#a3b70b2b9a3fe31840f92c431288569be">QwtPlotScaleItem::scaleDiv</a></div><div class="ttdeci">const QwtScaleDiv &amp; scaleDiv() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__scaleitem_8cpp_source.html#l00115">qwt_plot_scaleitem.cpp:115</a></div></div>
<div class="ttc" id="aclass_qwt_plot_scale_item_html_a3c24614b37143664165f7600d68e87cd"><div class="ttname"><a href="class_qwt_plot_scale_item.html#a3c24614b37143664165f7600d68e87cd">QwtPlotScaleItem::updateScaleDiv</a></div><div class="ttdeci">virtual void updateScaleDiv(const QwtScaleDiv &amp;, const QwtScaleDiv &amp;) override</div><div class="ttdoc">Update the item to changes of the axes scale division.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__scaleitem_8cpp_source.html#l00445">qwt_plot_scaleitem.cpp:445</a></div></div>
<div class="ttc" id="aclass_qwt_plot_scale_item_html_a5220a5f93bd85222e4993d12289dce82"><div class="ttname"><a href="class_qwt_plot_scale_item.html#a5220a5f93bd85222e4993d12289dce82">QwtPlotScaleItem::position</a></div><div class="ttdeci">double position() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__scaleitem_8cpp_source.html#l00275">qwt_plot_scaleitem.cpp:275</a></div></div>
<div class="ttc" id="aclass_qwt_plot_scale_item_html_a53bdad2a3bf4a3896f90d39aecd03391"><div class="ttname"><a href="class_qwt_plot_scale_item.html#a53bdad2a3bf4a3896f90d39aecd03391">QwtPlotScaleItem::isScaleDivFromAxis</a></div><div class="ttdeci">bool isScaleDivFromAxis() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__scaleitem_8cpp_source.html#l00150">qwt_plot_scaleitem.cpp:150</a></div></div>
<div class="ttc" id="aclass_qwt_plot_scale_item_html_a5ac9c0f71fb5e12166027d6e0b37c429"><div class="ttname"><a href="class_qwt_plot_scale_item.html#a5ac9c0f71fb5e12166027d6e0b37c429">QwtPlotScaleItem::scaleDraw</a></div><div class="ttdeci">const QwtScaleDraw * scaleDraw() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__scaleitem_8cpp_source.html#l00236">qwt_plot_scaleitem.cpp:236</a></div></div>
<div class="ttc" id="aclass_qwt_plot_scale_item_html_a8277edb5a94e67ec77ee6a88c67262a6"><div class="ttname"><a href="class_qwt_plot_scale_item.html#a8277edb5a94e67ec77ee6a88c67262a6">QwtPlotScaleItem::draw</a></div><div class="ttdeci">virtual void draw(QPainter *, const QwtScaleMap &amp;xMap, const QwtScaleMap &amp;yMap, const QRectF &amp;canvasRect) const override</div><div class="ttdoc">Draw the scale.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__scaleitem_8cpp_source.html#l00346">qwt_plot_scaleitem.cpp:346</a></div></div>
<div class="ttc" id="aclass_qwt_plot_scale_item_html_a8a1f80dc7349fdfbd9fb6ea584e7d83a"><div class="ttname"><a href="class_qwt_plot_scale_item.html#a8a1f80dc7349fdfbd9fb6ea584e7d83a">QwtPlotScaleItem::rtti</a></div><div class="ttdeci">virtual int rtti() const override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__scaleitem_8cpp_source.html#l00094">qwt_plot_scaleitem.cpp:94</a></div></div>
<div class="ttc" id="aclass_qwt_plot_scale_item_html_a8f246e1e73704c1c40ae1294269b65fa"><div class="ttname"><a href="class_qwt_plot_scale_item.html#a8f246e1e73704c1c40ae1294269b65fa">QwtPlotScaleItem::~QwtPlotScaleItem</a></div><div class="ttdeci">virtual ~QwtPlotScaleItem()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__scaleitem_8cpp_source.html#l00088">qwt_plot_scaleitem.cpp:88</a></div></div>
<div class="ttc" id="aclass_qwt_plot_scale_item_html_a8f2bc7a401bb3e1cf796ff024032e31d"><div class="ttname"><a href="class_qwt_plot_scale_item.html#a8f2bc7a401bb3e1cf796ff024032e31d">QwtPlotScaleItem::setFont</a></div><div class="ttdeci">void setFont(const QFont &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__scaleitem_8cpp_source.html#l00183">qwt_plot_scaleitem.cpp:183</a></div></div>
<div class="ttc" id="aclass_qwt_plot_scale_item_html_a94536af312bb9d6de5bc7547c59e4faf"><div class="ttname"><a href="class_qwt_plot_scale_item.html#a94536af312bb9d6de5bc7547c59e4faf">QwtPlotScaleItem::setPosition</a></div><div class="ttdeci">void setPosition(double pos)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__scaleitem_8cpp_source.html#l00261">qwt_plot_scaleitem.cpp:261</a></div></div>
<div class="ttc" id="aclass_qwt_plot_scale_item_html_a99032adf91892f73d06a4810cd78d26b"><div class="ttname"><a href="class_qwt_plot_scale_item.html#a99032adf91892f73d06a4810cd78d26b">QwtPlotScaleItem::setScaleDiv</a></div><div class="ttdeci">void setScaleDiv(const QwtScaleDiv &amp;)</div><div class="ttdoc">Assign a scale division.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__scaleitem_8cpp_source.html#l00108">qwt_plot_scaleitem.cpp:108</a></div></div>
<div class="ttc" id="aclass_qwt_plot_scale_item_html_a9d093fc9de7d423435f455c110d4605d"><div class="ttname"><a href="class_qwt_plot_scale_item.html#a9d093fc9de7d423435f455c110d4605d">QwtPlotScaleItem::QwtPlotScaleItem</a></div><div class="ttdeci">QwtPlotScaleItem(QwtScaleDraw::Alignment=QwtScaleDraw::BottomScale, const double pos=0.0)</div><div class="ttdoc">Constructor for scale item at the position pos.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__scaleitem_8cpp_source.html#l00075">qwt_plot_scaleitem.cpp:75</a></div></div>
<div class="ttc" id="aclass_qwt_plot_scale_item_html_a9f25630612c618370630d02d275b358a"><div class="ttname"><a href="class_qwt_plot_scale_item.html#a9f25630612c618370630d02d275b358a">QwtPlotScaleItem::font</a></div><div class="ttdeci">QFont font() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__scaleitem_8cpp_source.html#l00196">qwt_plot_scaleitem.cpp:196</a></div></div>
<div class="ttc" id="aclass_qwt_plot_scale_item_html_ad352c0b2aef9c37de89fe75db904b8c2"><div class="ttname"><a href="class_qwt_plot_scale_item.html#ad352c0b2aef9c37de89fe75db904b8c2">QwtPlotScaleItem::palette</a></div><div class="ttdeci">QPalette palette() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__scaleitem_8cpp_source.html#l00174">qwt_plot_scaleitem.cpp:174</a></div></div>
<div class="ttc" id="aclass_qwt_plot_scale_item_html_ae6e2fc87f445357555a3b1b54da054fa"><div class="ttname"><a href="class_qwt_plot_scale_item.html#ae6e2fc87f445357555a3b1b54da054fa">QwtPlotScaleItem::setBorderDistance</a></div><div class="ttdeci">void setBorderDistance(int)</div><div class="ttdoc">Align the scale to the canvas.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__scaleitem_8cpp_source.html#l00296">qwt_plot_scaleitem.cpp:296</a></div></div>
<div class="ttc" id="aclass_qwt_plot_scale_item_html_af11343d14c4ee38e0527cedd52b3da85"><div class="ttname"><a href="class_qwt_plot_scale_item.html#af11343d14c4ee38e0527cedd52b3da85">QwtPlotScaleItem::setAlignment</a></div><div class="ttdeci">void setAlignment(QwtScaleDraw::Alignment)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__scaleitem_8cpp_source.html#l00333">qwt_plot_scaleitem.cpp:333</a></div></div>
<div class="ttc" id="aclass_qwt_plot_scale_item_html_aff7adf18c2a6f679227c0fdaa54f39f7"><div class="ttname"><a href="class_qwt_plot_scale_item.html#aff7adf18c2a6f679227c0fdaa54f39f7">QwtPlotScaleItem::setPalette</a></div><div class="ttdeci">void setPalette(const QPalette &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__scaleitem_8cpp_source.html#l00159">qwt_plot_scaleitem.cpp:159</a></div></div>
<div class="ttc" id="aclass_qwt_scale_div_html"><div class="ttname"><a href="class_qwt_scale_div.html">QwtScaleDiv</a></div><div class="ttdoc">A class representing a scale division.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__div_8h_source.html#l00033">qwt_scale_div.h:34</a></div></div>
<div class="ttc" id="aclass_qwt_scale_div_html_a30f6cd443fdbc5d57b3503893c7cbfa6"><div class="ttname"><a href="class_qwt_scale_div.html#a30f6cd443fdbc5d57b3503893c7cbfa6">QwtScaleDiv::interval</a></div><div class="ttdeci">QwtInterval interval() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__div_8cpp_source.html#l00111">qwt_scale_div.cpp:111</a></div></div>
<div class="ttc" id="aclass_qwt_scale_div_html_aa5c61a5fef5f83f2735e4e1b8e545f0b"><div class="ttname"><a href="class_qwt_scale_div.html#aa5c61a5fef5f83f2735e4e1b8e545f0b">QwtScaleDiv::setInterval</a></div><div class="ttdeci">void setInterval(double lowerBound, double upperBound)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__div_8cpp_source.html#l00091">qwt_scale_div.cpp:91</a></div></div>
<div class="ttc" id="aclass_qwt_scale_draw_html"><div class="ttname"><a href="class_qwt_scale_draw.html">QwtScaleDraw</a></div><div class="ttdoc">A class for drawing scales.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__draw_8h_source.html#l00035">qwt_scale_draw.h:36</a></div></div>
<div class="ttc" id="aclass_qwt_scale_draw_html_a002528e391ce07246a5d6b05b4bac9d9"><div class="ttname"><a href="class_qwt_scale_draw.html#a002528e391ce07246a5d6b05b4bac9d9">QwtScaleDraw::setLength</a></div><div class="ttdeci">void setLength(double length)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__draw_8cpp_source.html#l00732">qwt_scale_draw.cpp:732</a></div></div>
<div class="ttc" id="aclass_qwt_scale_draw_html_a15f91bdd71ec87abe618e00cf18aa3f1"><div class="ttname"><a href="class_qwt_scale_draw.html#a15f91bdd71ec87abe618e00cf18aa3f1">QwtScaleDraw::move</a></div><div class="ttdeci">void move(double x, double y)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__draw_8h_source.html#l00118">qwt_scale_draw.h:118</a></div></div>
<div class="ttc" id="aclass_qwt_scale_draw_html_a7a4de0055dc1358e55c3357366a54091"><div class="ttname"><a href="class_qwt_scale_draw.html#a7a4de0055dc1358e55c3357366a54091">QwtScaleDraw::setAlignment</a></div><div class="ttdeci">void setAlignment(Alignment)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__draw_8cpp_source.html#l00322">qwt_scale_draw.cpp:322</a></div></div>
<div class="ttc" id="aclass_qwt_scale_draw_html_a89774ef071c6d66fae5843a13fe12bd5"><div class="ttname"><a href="class_qwt_scale_draw.html#a89774ef071c6d66fae5843a13fe12bd5">QwtScaleDraw::alignment</a></div><div class="ttdeci">Alignment alignment() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__draw_8cpp_source.html#l00309">qwt_scale_draw.cpp:309</a></div></div>
<div class="ttc" id="aclass_qwt_scale_draw_html_aba3a8530871137eb5f977e1eb3fe4975"><div class="ttname"><a href="class_qwt_scale_draw.html#aba3a8530871137eb5f977e1eb3fe4975">QwtScaleDraw::orientation</a></div><div class="ttdeci">Qt::Orientation orientation() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__draw_8cpp_source.html#l00337">qwt_scale_draw.cpp:337</a></div></div>
<div class="ttc" id="aclass_qwt_scale_draw_html_acd7ceeeac592ef08530788580b461c66"><div class="ttname"><a href="class_qwt_scale_draw.html#acd7ceeeac592ef08530788580b461c66">QwtScaleDraw::Alignment</a></div><div class="ttdeci">Alignment</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__draw_8h_source.html#l00042">qwt_scale_draw.h:43</a></div></div>
<div class="ttc" id="aclass_qwt_scale_draw_html_acd7ceeeac592ef08530788580b461c66a0e16389e135da75f06117d1ee3ef765f"><div class="ttname"><a href="class_qwt_scale_draw.html#acd7ceeeac592ef08530788580b461c66a0e16389e135da75f06117d1ee3ef765f">QwtScaleDraw::BottomScale</a></div><div class="ttdeci">@ BottomScale</div><div class="ttdoc">The scale is below.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__draw_8h_source.html#l00045">qwt_scale_draw.h:45</a></div></div>
<div class="ttc" id="aclass_qwt_scale_draw_html_acd7ceeeac592ef08530788580b461c66a84d42042d94ae7726395ceb578225e1e"><div class="ttname"><a href="class_qwt_scale_draw.html#acd7ceeeac592ef08530788580b461c66a84d42042d94ae7726395ceb578225e1e">QwtScaleDraw::RightScale</a></div><div class="ttdeci">@ RightScale</div><div class="ttdoc">The scale is right.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__draw_8h_source.html#l00055">qwt_scale_draw.h:54</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html"><div class="ttname"><a href="class_qwt_scale_map.html">QwtScaleMap</a></div><div class="ttdoc">A scale map.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00026">qwt_scale_map.h:27</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html_a504f1627e0e02ddac03d2ce46507b865"><div class="ttname"><a href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">QwtScaleMap::transform</a></div><div class="ttdeci">double transform(double s) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00137">qwt_scale_map.h:137</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html_a810c561caaad7d6573a1e8ff06fe4b23"><div class="ttname"><a href="class_qwt_scale_map.html#a810c561caaad7d6573a1e8ff06fe4b23">QwtScaleMap::transformation</a></div><div class="ttdeci">const QwtTransform * transformation() const</div><div class="ttdoc">Get the transformation.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8cpp_source.html#l00088">qwt_scale_map.cpp:88</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html_ab1ee6d62addf3f9cf091d425be9ac642"><div class="ttname"><a href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">QwtScaleMap::invTransform</a></div><div class="ttdeci">double invTransform(double p) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00154">qwt_scale_map.h:154</a></div></div>
<div class="ttc" id="aclass_qwt_text_html"><div class="ttname"><a href="class_qwt_text.html">QwtText</a></div><div class="ttdoc">A class representing a text.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8h_source.html#l00051">qwt_text.h:52</a></div></div>
<div class="ttc" id="aclass_qwt_transform_html"><div class="ttname"><a href="class_qwt_transform.html">QwtTransform</a></div><div class="ttdoc">A transformation between coordinate systems.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__transform_8h_source.html#l00035">qwt_transform.h:36</a></div></div>
<div class="ttc" id="aclass_qwt_transform_html_aae011ee4205fa4391459766d88971809"><div class="ttname"><a href="class_qwt_transform.html#aae011ee4205fa4391459766d88971809">QwtTransform::copy</a></div><div class="ttdeci">virtual QwtTransform * copy() const =0</div><div class="ttdoc">Virtualized copy operation.</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>qwt_plot_scaleitem.cpp</b></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
